<script>
    var getPartnersUrl = '<?php echo Yii::app()->createUrl('ajax/getPartners') ?>';
</script>
<script src="/js/signUp.js"></script>

<style>
    .listPartners ul li{
        list-style: none;
        text-align: center;
        border: 1px solid black;
        background-color:#E5ECF9;
        padding: 5px;
        margin-top: 3px;
        cursor:pointer;
        width: 300px;
    }
    
    .listPartners ul li:hover {
        background-color:#ECFBD4;
    }
    
    .listPartners {
        margin-left: -25px;
    }
</style>

<div class="padding040">
       <h2 class="profil_h2">Регистрация</h2>
   
    <?php echo CHtml::errorSummary($model, 'Пожалуйста исправьте следующие ошибки:'); ?>
<?php echo CHtml::beginForm('', 'post', array('id'=>'signUpForm', 'class'=>'form')); ?>
 <div class="span5">
    <div class="control-group">
        <?php echo CHtml::activeLabel($model, 'login'); ?>
        <div class="controls">
           <?php echo CHtml::activeTextField($model, 'login', array('size'=>50,'maxlength'=>30)); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo CHtml::activeLabel($model, 'displayName'); ?>
        <div class="controls">
            <?php echo CHtml::activeTextField($model, 'displayName', array('size'=>50,'maxlength'=>32)); ?>
        </div>
    </div>     
  <div class="control-group">
     <?php echo CHtml::activeLabel($model, 'email'); ?>
    <div class="controls">
      <?php echo CHtml::activeTextField($model, 'email', array('size'=>50,'maxlength'=>320)); ?>
    </div>
  </div>
    <div class="control-group">
     <?php echo CHtml::activeLabel($model, 'password', array('size'=>50,'maxlength'=>32)); ?>
    <div class="controls">
      <?php echo CHtml::activePasswordField($model, 'password'); ?>
    </div>
  </div>
  </div>   
  <div class="span5">     
  <div class="control-group">
    <?php echo CHtml::activeLabel($model, 'site'); ?>
    <div class="controls">
        <?php echo CHtml::activeTextField($model, 'site', array('rows'=>3, 'cols'=>'80', 'maxlength'=>'128')); ?>
    </div>
  </div>
     <div class="control-group">
       <?php echo CHtml::activeLabel($model, 'twitter'); ?>
        <div class="controls">
            <?php echo CHtml::activeTextField($model, 'twitter', array('rows'=>3, 'cols'=>'80', 'maxlength'=>'128')); ?>
        </div>
      </div>
      <div class="control-group">
        <?php echo CHtml::activeLabel($model, 'skype'); ?>
        <div class="controls">
            <?php echo CHtml::activeTextField($model, 'skype', array('rows'=>3, 'cols'=>'80', 'maxlength'=>'30')); ?>
        </div>
      </div>
        <div class="control-group">
            <label for="partnerName">Партнерки с коротыми вы работаете(максимум 10):</label>
            <div class="controls">
             <?php echo CHtml::textField('partnerName', '', array('id'=>'partnerName','style'=>'width:400px;')); ?>
                <span style="display: none;" class="error">Достигнут максимум</span>
                <?php echo CHtml::activeHiddenField($model, 'workPartners', array('value'=>'', 'id'=>'workPartners')); ?>
                <div style="display: none;" id="autoComplete"></div>
                <div id="subscribedPartners"></div>
            </div>
        </div>
  </div>  
  <div class="control-group">
    <div class="controls">
        <label class="checkbox">
            <?php echo CHtml::activeCheckBox($model, 'subscr', array('id'=>'subscrCheckBox','checked'=>'checked')); ?> <label for="subscrCheckBox">Подписаться на новости</label>
        </label>
    </div>
   </div>
       <div class="offset4">
    <div class="control-group">
        <?php echo CHtml::activeLabel($model, 'validacion'); ?> 
        <div class="controls">
            <?php 
                $this->widget(
                    'application.extensions.recaptcha.EReCaptcha', 
                    array('model'=>$model, 'attribute'=>'validacion',
                        'publicKey'=>'6LcTX-QSAAAAALxQVZOga_6t_JVg5Nm85-lBzPN1'
                )); 
            ?>
        </div>
    </div>
       </div>    
      <div class="clearfix"></div>
      <div class="span5">
       <div class="control-group mar_top10">
           <div class="controls">
         <button id="submitButton" class="btn btn-partn btn-large">Регистрация</button>
         </div>  
       </div>
  </div>
 <?php echo CHtml::endForm(); ?> 
      
</div>        

